package com.bestcem.xm.ticket.grpc.service;

import com.bestcem.xm.common.core.domain.message.SampleCopyMessage;
import com.bestcem.xm.ticket.grpc.v1.services.SampleCopyMessageRequest;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingConstants;

@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface EntityConverter {
    @Mapping(source = "seqMapList", target = "seqList")
    @Mapping(source = "projectMapsList", target = "projectList")
    SampleCopyMessage toSampleCopyMessage(SampleCopyMessageRequest source);
}